package cn.tedu.spring.diobj;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestEmp {

    @Test
    public void bean1Test(){
        ApplicationContext context = new ClassPathXmlApplicationContext("bean-diobj.xml");
        Emp emp1 = context.getBean("emp3", Emp.class);
        System.out.println("emp3 = " + emp1);
    }
}
